Ext.define('Hr.view.staff.staffinfo.ShowPanel',{
    extend:'Ext.panel.Panel',
    alias:'widget.show',
    width:'100%',
    height:'100%',
    layout:'fit',
    title:'人员信息一览',
    items:[{
        xtype:'grid',
        itemId:'grid',
        id:'grid',
        border:false,
        store:'staff.StaffInfoStore',
        flex:1,
        columns:[{
            header:'id',
            hidden:true,
            dataIndex:'id'
        },{
            header:'人员编号',
            flex:1,
            hidden:true,
            dataIndex:'cd'
        },{
            header:'姓名',
            flex:1,
            dataIndex:'name'
        },{
            header:'职务',
            flex:1,
            dataIndex:'duty'
        },{
            header:'性别',
            flex:1,
            dataIndex:'sex'
        },{
            header:'出生日期',
            flex:1,
            dataIndex:'birth'
        },{
            header:'学历',
            flex:1,
            dataIndex:'education'
        },{
            header:'专业',
            flex:1,
            dataIndex:'major'
        },{
            header:'入职时间',
            flex:1,
            dataIndex:'jointime'
        },{
            header:'联系电话',
            flex:1,
            dataIndex:'phone'
        },{
            header:'在职状态',
            flex:1,
            dataIndex:'state'
        },{
            header:'查看资料',
            flex:1,
            dataIndex:'cert'
        }],
        tbar:[{
            xtype:'textfield',
            width:150,
            id:'textfield'
        },{
            xtype:'combo',
            width:150,
            id:'combo',
            editable:false,
            store:'staff.StaffInfoComboStore',
            displayField:'name',
            valueField:'value'
        },{
            icon:'../image/icons/search.png',
            text:'搜寻',
            action:'search'
        }],
        bbar:[{
           text:'新增',
           action:'add',
           icon:'../image/icons/add.png'
        },{
           text:'修改',
           action:'update',
           disabled:true,
           id:'update',
           icon:'../image/icons/update.png'
        },{
           text:'删除',
           action:'del',
           disabled:true,
           id:'del',
           icon:'../image/icons/del.png'
        },'->', {
            xtype:'pagingtoolbar',
            pageSize: 10,
            beforePageText:'第',
            afterPageText:'页，共{0}页',
            stroe:'staff.StaffInfoStore',
            displayMsg:'当前{0}-{1}条数据，共{2}条数据',
            emptyMsg:'没有可显示的数据',
            border:false,
            displayInfo: true
        }]
    }]
})